#include <bits/stdc++.h>
using namespace std;
int n, m;
const int N = 1e5 + 10;
vector<int> alls;
vector<pair<int, int>> add, query;

int main() {
	cin >> n >> m;
	for (int i = 0; i < n; ++i) {
		int x, c;
		cin >> x >> c;
		alls.push_back(x);
		add.push_back({x, c});
	}
	return 0;
}